﻿using Newtonsoft.Json;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 样品单 主表
    /// </summary>
    [SugarTable("SampleListHeader")]
    public class SampleListHeader : BaseHead
    {
        /// <summary>
        /// 生成免费订单状态
        /// </summary>
        public string SapStatus { get; set; }

        /// <summary>
        /// 同步人员ID
        /// </summary>
        public string SyncUserId { get; set; }

        /// <summary>
        /// 事业部类型
        /// </summary>
        public string BusinessType { get; set; }

        /// <summary>
        /// 销售员名称
        /// </summary>
        public string SalespersonName { get; set; }

        /// <summary>
        /// 需求类型
        /// </summary>
        public string NneedType { get; set; }

        /// <summary>
        /// 客户编码
        /// </summary>
        public string CustomerCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 销售组织
        /// </summary>
        public string SaleRegion { get; set; }

        /// <summary>
        /// 行业
        /// </summary>
        public string CustomerGroup2 { get; set; }

        /// <summary>
        /// 细分市场
        /// </summary>
        public string CustomerGroup4 { get; set; }

        /// <summary>
        /// 客户分级
        /// </summary>
        public string CustomerRank { get; set; }

        /// <summary>
        /// 成本中心
        /// </summary>
        public string CostCentre { get; set; }

        /// <summary>
        /// 成本中心名称
        /// </summary>
        public string CostCentreName { get; set; }

        /// <summary>
        /// 商机编码
        /// </summary>
        public string BusinessOpportunityNo { get; set; }

        /// <summary>
        /// 商机名称
        /// </summary>
        public string BusinessOpportunityName { get; set; }

        /// <summary>
        /// 发放类型
        /// </summary>
        public string GrantType { get; set; }

        /// <summary>
        /// 样品送达日期
        /// </summary>
        public DateTime ArriveTime { get; set; }

        /// <summary>
        /// 投诉单号
        /// </summary>
        public string ComplaintNo { get; set; }

        /// <summary>
        /// 是否含投槽
        /// </summary>
        public string IsTC { get; set; }

        /// <summary>
        /// 投槽时间
        /// </summary>
        public DateTime TcTime { get; set; }

        /// <summary>
        /// 投资回收周期
        /// </summary>
        public string PaybackPeriod { get; set; }

        /// <summary>
        /// 是否转销售
        /// </summary>
        public string IsToSales { get; set; }

        /// <summary>
        /// 预计转销售日期
        /// </summary>
        public DateTime ToSalesTime { get; set; }

        /// <summary>
        /// 送达方编码
        /// </summary>
        public string ReceiverCode { get; set; }

        /// <summary>
        /// 送达方
        /// </summary>
        public string ReceiverName { get; set; }

        /// <summary>
        /// 送货方式
        /// </summary>
        public string DeliverType { get; set; }

        /// <summary>
        /// 收货人
        /// </summary>
        public string Consignee { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string Telephone { get; set; }

        /// <summary>
        /// 送货地址
        /// </summary>
        public string DeliverAddress { get; set; }

        /// <summary>
        /// 运输区域
        /// </summary>
        public string TransitArea { get; set; }

        /// <summary>
        /// 运输区域编码
        /// </summary>
        public string TransitAreaCode { get; set; }

        /// <summary>
        /// 需求说明
        /// </summary>
        public string RequireDesc { get; set; }

        /// <summary>
        /// 销售直属上级
        /// </summary>
        public string SaleSuperior { get; set; }

        ///// <summary>
        ///// CSC抄送人员
        ///// </summary>
        //[JsonProperty(PropertyName = "CSCName")]
        //public string CSCName { get; set; }

        /// <summary>
        /// 销售行政
        /// </summary>
        public string XSXZName { get; set; }

        ///// <summary>
        ///// 其他抄送人员
        ///// </summary>
        //[JsonProperty(PropertyName = "ccUserNames")]
        //public string CCUserNames { get; set; }

        /// <summary>
        /// 总成本
        /// </summary>
        public string CostTotal { get; set; }

        /// <summary>
        ///  行数据
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<SampleListDetail> LineData { get; set; }
    }
}
